Platform | URL | |
---|---|---|
Website | https://unitycoder.com/blog/ | .. |
Github | https://github.com/unitycoder | .. |
Unity Forums | https://forum.unity.com/members/mgear.22727/ | .. |
https://twitter.com/unitycoder_com | ||
Mastodon | https://mastodon.gamedev.place/@unitycoder | .. |
Youtube | https://www.youtube.com/@unitycoder | |
https://www.linkedin.com/in/unitycoder/ | ||
Discord | https://discord.com/invite/cXT97hU | .. |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CustomScrollView( | |
physics: | |
const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()), | |
slivers: <Widget>[ | |
SliverAppBar( | |
title: Text( | |
"Example", | |
style: heading1, | |
), | |
floating: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { FC } from 'react'; | |
import { useSocket } from '@myapp/hooks'; | |
import {Order} from '@myapp/models'; | |
export const OrdersComponent: FC = () => { | |
const [orders,setOrders] = useState<Order[]>(); | |
function addNewOrder(neworder:Order) { |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
certificat=/usr/certificate/example.com/cert.pem | |
gotify_url="https://push.example.com/message?token=xxxxx" | |
gotify_title="Synology Certificate Expiry" | |
function check_certificat () { | |
if openssl x509 -checkend $((${1}*86400)) -noout -in $certificat; then | |
return 1 | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
def doi2bib(doi): | |
""" | |
Return a bibTeX string of metadata for a given DOI. | |
""" | |
url = "http://dx.doi.org/" + doi | |
headers = {"accept": "application/x-bibtex"} |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
NewerOlder